#!/bin/bash
# Script de instalacion de daemos
# Copyright (c) MJGonzalez, liberado bajo la licencia GNU GPL v3
 
mkdir /home/Hackplayers
cp reg.sh /home/Hackplayers/reg.sh
cp -r demons /home/Hackplayers/demons
cp /home/Hackplayers/demons/latcheserver.sh /etc/init.d
chmod 700 /etc/init.d/latcheserver.sh
cp latch.accounts /home/Hackplayers/latch.accounts
cp /home/Hackplayers/demons/* /bin
chmod +x /home/Hackplayers/*
cd /home/Hackplayers
touch /home/Hackplayers/AID
chmod 777 /home/Hackplayers/AID
touch /home/Hackplayers/Sk
chmod 777 /home/Hackplayers/AID
touch /var/run/latcheserver.pid
cp on.sh /home/Hackplayers
cp off.sh /home/Hackplayers
chmor +x /home/Hackplayers

echo "Done"

